package com.qf.service.impl;

import com.qf.dao.DiscoverDao;
import com.qf.pojo.discover;
import com.qf.service.DiscoverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZhaoHuiDong on 2020/9/16.
 */
@Service("discoverService")
public class DiscoverServiceImpl implements DiscoverService {
    @Autowired(required = false)
    private DiscoverDao discoverDao;
    @Override
    public List<discover> selectAll() {
        return discoverDao.selectAll();
    }

    @Override
    public int delete(int id) {
      return   discoverDao.delete(id);
    }

    @Override
    public int add(discover discover) {
        return discoverDao.add(discover);
    }

    @Override
    public int update(discover discover) {
        return discoverDao.update(discover);
    }
}
